.voice-message-container {
  position: absolute;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  bottom: 0;
  display: flex;
}

.voice-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  height: 4rem;
  background-color: #f5f5f5;
  border-radius: 4px;
  font-size: 16px;
  color: #333;
  user-select: none;
  touch-action: none;
}

.voice-button.recording {
  background-color: #e0e0e0;
  color: #666;
}

.voice-recording-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.voice-recording-content {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 8px;
  color: white;
  text-align: center;
  min-width: 200px;
  max-width: 80vw;
}
.keyIcon{
  background-color: #eee;
  width: 20%;
  line-height: 4em;
  text-align: center;
  height: 4rem;
  z-index: 1000;
}
.recording-icon {
  margin-bottom: 10px;
}

.voice-wave {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  gap: 4px;
}

.wave-bar {
  width: 4px;
  background-color: #07C160;
  border-radius: 2px;
  animation: wave 1s infinite ease-in-out;
}

@keyframes wave {
  0%, 100% {
    transform: scaleY(0.6);
  }
  50% {
    transform: scaleY(1.2);
  }
}

.recording-time {
  font-size: 14px;
  margin-top: 8px;
}

.voice-text-preview {
  margin-top: 10px;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 14px;
}

.cancel-tip {
  color: #ff4d4f;
  font-size: 16px;
}

.cancel-mode .voice-wave .wave-bar {
  background-color: #ff4d4f;
}